<script type="text/javascript" language="JavaScript">
  function check_name() {ldelim}
    if (document.getElementById('new_rss').value == '') {ldelim}
      alert("{#titles_ENTER_NAME#}");
      document.getElementById('new_rss').focus();
      return false;
    {rdelim}
    return true;
  {rdelim}
</script>
{strip}
<div class="pageHeaderTitle" style="padding-top: 7px;">
  <div class="h_module"></div>
  <div class="HeaderTitle"><h2>{#titles_LIST#}</h2></div>
  <div class="HeaderText">{#titles_LIST_TIP#}</div>
</div><br />
<br />

{if $titles}
  <table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableborder">
    <tr class="tableheader">
      <td width="1%">{#titles_ID#}</td>
      <td width="30%">{#titles_URL#}</td>
      <td>{#titles_TITLE#}</td>
      <td width="5%" colspan="2" align="center">{#titles_ACTIONS#}</td>
    </tr>
    {foreach from=$titles item=items}
    <tr style="background-color: #eff3eb;" onmouseover="this.style.backgroundColor='#dae0d8';" onmouseout="this.style.backgroundColor='#eff3eb';" id="table_rows">
      <td class="itcen">{$items->id}</td>
      <td><a {popup sticky=false text=$config_vars.titles_EDIT_HINT} href="index.php?do=modules&action=modedit&mod=titles&moduleaction=edit&cp={$sess}&id={$items->id}">{$items->url}</a></td>
      <td>{$items->title}</td>
      <td align="center">
        <a {popup sticky=false text=$config_vars.titles_EDIT_HINT} href="index.php?do=modules&action=modedit&mod=titles&moduleaction=edit&cp={$sess}&id={$items->id}">
        <img src="{$tpl_dir}/images/icon_edit.gif" alt="" border="0" /></a>
      </td>
      <td align="center">
        <a {popup sticky=false text=$config_vars.titles_DELETE_HINT} href="index.php?do=modules&action=modedit&mod=titles&moduleaction=del&cp={$sess}&id={$items->id}">
        <img src="{$tpl_dir}/images/icon_del.gif" alt="" border="0" />
      </td>
    </tr>
    {/foreach}
  </table>
{else}
{#titles_NO_ITEMS#}
{/if}

<h4>{#titles_ADD#}</h4>

<form action="index.php?do=modules&action=modedit&mod=titles&moduleaction=add&cp={$sess}" method="post" onSubmit="return check_name();">
  <table width="100%" border="0" cellpadding="8" cellspacing="1" class="tableborder">
    <tr class="tableheader">
      <td>{#titles_URL#}</td>
      <td>{#titles_TITLE#}</td>
    </tr>
    <tr>
      <td class="second" width="350">Url:</td>
      <td class="second"><input name="url" type="text" id="url" size="60" /></td>
    </tr>
     <tr>
      <td class="second" width="350">Title:</td>
      <td class="second"><input name="title" type="text" id="title" size="60" /></td>
    </tr>
    <tr>
      <td class="second" width="350">Keywords:</td>
      <td class="second"><input name="keywords" type="text" id="keywords" size="60" /></td>
    </tr>
    <tr>
      <td class="second" width="350">Description:</td>
      <td class="second"><input name="description" type="text" id="description" size="60" /></td>
    </tr>
    <tr>
    	<td colspan="2"><input name="submit" type="submit" class="button" value="{#titles_BUTTON_ADD#}" /></td>
    </tr>
  </table>
</form>
{/strip}